Automattic\Jetpack\Extensions\Premium_Content\Subscription_Service\Abstract_Token_Subscription_Service C

Total Complexity 101
Dependencies 4
Dependents 12
Total lines 559
Lines of code 286
Logical lines of code 174
Comment lines 197
Methods 24
Properties 1

Methods 24

Method Rating Maintainability Complexity Lines of code
maybe_gate_access_for_user_if_tier()
C
36 27 74
user_has_access()
A
52 9 24
abbreviate_subscriptions()
A
54 8 19
validate_subscriptions()
S
56 7 18
clear_token_cookie()
S
61 5 12
visitor_can_view_content()
S
52 4 26
set_token_cookie()
S
65 5 8
decode_token()
S
62 4 11
find_metadata()
S
63 4 11
token_from_request()
S
64 4 9
access_url()
S
63 3 11
get_token_payload()
S
64 3 11
get_token_property()
S
69 2 7
maybe_gate_access_for_user_if_post_tier()
S
65 2 9
token_from_cookie()
S
73 2 5
has_token_from_cookie()
S
77 2 3
get_and_set_token_from_request()
S
68 2 8
get_subscriber_email()
S
69 2 7
initialize()
S
82 1 3
get_key()
S
100 1 0
is_current_user_pending_subscriber()
S
100 1 0
is_current_user_subscribed()
S
79 1 3
get_rest_api_token_url()
S
74 1 4
__construct()
S
81 1 3